<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p id="p">
      hello p tag

      <b>hello jack <i>!!</i> </b>
    </p>
    <script>
      const p = document.getElementById("p");

      setTimeout(() => {
        p.remove();
        console.log(p.cloneNode()); // 浅克隆
        console.log(p.cloneNode(true)); // 深克隆
      }, 3000);
    </script>
  </body>
</html>
